package cn.tdeu.spring.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TsetOrder {
    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext
                        ("cn.tdeu.spring.scope");

        Order bean1 = context.getBean(Order.class);
        System.out.println(bean1);
        Order bean2 = context.getBean(Order.class);
        System.out.println(bean2);

    }
}
